<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>wisdom-question</title>
</head>
<body>
	<!-- table cellpadding="1" cellspacing="1" border="1" width="100%" class="mainTable" -->
	<table cellpadding="1" cellspacing="1" border="1" width="100%" class="mainTable">	
		<tr bordercolor="red">
			<td>
				<table width="100%" class="headerTable1">
					<tr>
						<td width="70%"/>
						<td>
							<a href="#">login</a>
						</td>
						<td>
							<a href="#">about</a>
						</td>
						<td>
							<a href="#">faq</a>
						</td>
						<td>
							<form id="search" action="#" method="post">
								<input name="q" class="textbox" type="text"/>
							</form>			
						</td>									
					</tr>
				</table>
			</td>
		</tr>
		<tr><td>
			<table cellpadding="1" cellspacing="1" border="1" width="100%" class="headerTable">
				<tr bordercolor="blue">
					<td width="12%"/>
					<td width="12%">
						<a href="/questions">Questions</a>
					</td>
					<td width="12%">
						<a href="/tags">Tags</a>
					</td>
					<td width="12%">
						<a href="/users">Users</a>
					</td>
					<td width="12%">
						<a href="/badges">Badges</a>
					</td>
					<td width="12%">
						<a href="/badges">Unanswered</a>
					</td>					
					<td width="8%"/>
					<td width="12%">
						<a href="/unanswered">Ask Question</a>
					</td>				
				</tr> 
			</table>																					
		</td></tr>
		<tr><td>
			<table cellpadding="1" cellspacing="1" border="1" width="100%" class="bodyTable">
				<tr>
					<td width="70%">
						<table style="float:left" cellpadding="1" cellspacing="1" border="1" width="100%" class="leftTable">
							<tr>
								<td>
									<table style="float:left" cellpadding="1" cellspacing="1" border="1" width="100%" class="concreteQuestion">
										<tr>
											<td COLSPAN=2>Why is this code so slow?</td>
										</tr>
										<tr>
											<td width="5%">
												<a href="#">up</a>
												<br>
												5
												<br>
												<a href="#">down</a>
											</td>
											<td>
											So i have this function used to calculate statistics (min/max/std/mean), now the thing is this runs generally on a 10,000 by 15,000 matrix. The matrix is stored as a vector inside the class. Now creating and populating said matrix goes very fast, but when it comes down to the statistics part it becomes so incredibly slow. 
											E.g. To read all the pixel values of the geotiff one pixel at a time takes around 30 seconds. (which involves a lot of complex math to properly georeference the pixel values to a corresponding point), to calculate the statistics of the entire matrix it takes around 6 minutes.																																																							
											</td>
										</tr>
										<tr>
											<td COLSPAN=2  align="right"> 
											<a href="#">jquery</a> <a href="#">javascript</a> <a href="#">html</a>
											</td>
										</tr>
										<tr>
											<td COLSPAN=2  align="right"> 
											Author: <a href="#">Chepenko</a>
											</td>
										</tr>										
									</table>
								</td>						
							</tr>
							<tr>
								<td><b>2 Answers</b></td>
							</tr>
							<tr>
								<td>
									<table style="float:left" cellpadding="1" cellspacing="1" border="1" width="100%" class="answer">
										<tr>
											<td width="5%">
												<a href="#">up</a>
												<br>
												5
												<br>
												<a href="#">down</a>
												<br>
												<font color="green">Right!</font>
											</td>
											<td>
											It's really unlikely that Django will ever have 'helper' functionality built-in. The reason, if I understand correctly, has to do with Django's core philosophy of keeping things loosely coupled. Having that kind of helper functionality built-in leads to coupling Django with a specific JavaScript library or (in your case) html document type. 
											EG. What happens if/when HTML 5 is finally implemented and Django is generating HTML 4 or XHTML markup?
											Having said that, Django's template framework is really flexible, and it wouldn't be terribly difficult to write your own tags/filters that did what you wanted. I'm mostly a designer myself, and I've been able to put together a couple custom tags that worked like a charm.											
											</td>
										</tr>
										<tr>
											<td COLSPAN=2  align="right"> 
											answered: <a href="#">Vano</a>
											</td>
										</tr>																			
									</table>
									<table style="float:left" cellpadding="1" cellspacing="1" border="1" width="100%" class="answer">
										<tr>
											<td width="5%">
												<a href="#">up</a>
												<br>
												3
												<br>
												<a href="#">down</a>
											</td>
											<td>
											The purpose of helpers is not, as others here imply, to help developers who don't know how to write HTML. The purpose is to encapsulate common functionality -- so you don't need to write the same thing a thousand times -- and to provide a single place to edit common HTML used throughout your app.
											It's the same reason templates and SSI are useful -- not because people don't know how to write the HTML in their headers and footers, but sometimes you want to write it just once.											
											</td>
										</tr>
										<tr>
											<td COLSPAN=2  align="right"> 
											answered: <a href="#">Vano</a>
											</td>
										</tr>																			
									</table>																	
								</td>
							</tr>
							<tr>
								<td>
								<b>Your Answer</b>
								</td>
							</tr>
							<tr>
								<td>
									<form id="answerform" action="#">
										<textarea name="answer" rows="10" cols="60"></textarea>
										<br>
										<input type="submit" value="Post Your Answer">
									</form>
								</td>
							</tr>
						</table>
					</td>
					<td width="30%">
						<table style="float:left" cellpadding="1" cellspacing="1" border="1" width="100%" class="rightTable">
							<tr>
								<td>
									<a href="#">plsql</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">java</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">c#</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">gui</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">html</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">python</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">Flash</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">spring</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">linux</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">ide</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">mac</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">xhtml</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">perl</a>
								</td>										
							</tr>
							<tr>
								<td>
									<a href="#">javascript</a>
								</td>										
							</tr>																																																																																											
						</table>
					</td>
				</tr>
			</table>			
		</td></tr>
	</table>
</body>
</html>